Don't warn about `metadata` keys in the manifest
authorAlex Crichton <alex@alexcrichton.com>
Tue, 10 May 2016 19:55:19 +0000 (12:55 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 12 Jun 2016 10:51:42 +0000 (03:51 -0700)
commitebd630dbb0e029f7201e242dadb1dafaad792372
tree9e175f117620a316aa0800d2a65a6dfe81000cd5
parentffa147d393037fd5632cd8c9d048b5521d70ab4c
Don't warn about `metadata` keys in the manifest

External tools may want to store metadata in `Cargo.toml` that they read but
Cargo itself doesn't read. For example `cargo-apk` uses this for pieces of
configuration. Cargo unfortunately, however, warns about these keys as "unused
keys in the manifest"

This commit instead whitelists the `package.metadata` key to not warn about any
data inside.
src/cargo/util/toml.rs
src/doc/manifest.md
tests/build.rs